package com.cssy.yd.logic.dao;

import com.cssy.yd.logic.entity.LogicProGetItemDO;
import com.plat.helper.SearchConditions;

import java.util.List;
import java.util.Map;

import org.springframework.dao.DataAccessException;

/**
 * 数据访问对象接口
 * @since 2013-08-12
 */
public interface LogicProGetItemDAO {

    /**
     * 插入数据
     * @param logicProGetItemDO
     * @return 插入数据的主键
     */
    public String insertLogicProGetItemDO(LogicProGetItemDO logicProGetItemDO) throws DataAccessException;

    /**
     * 统计记录数
     * @param logicProGetItemDO
     * @return 查出的记录数
     */
    public Integer countLogicProGetItemDOByExample(LogicProGetItemDO logicProGetItemDO) throws DataAccessException;

    /**
     * 更新记录
     * @param logicProGetItemDO
     * @return 受影响的行数
     */
    public Integer updateLogicProGetItemDO(LogicProGetItemDO logicProGetItemDO) throws DataAccessException;

    /**
     * 获取对象列表
     * @param logicProGetItemDO
     * @return 对象列表
     */
    public List<LogicProGetItemDO> findListByExample(LogicProGetItemDO logicProGetItemDO) throws DataAccessException;

    /**
     * 根据主键获取logicProGetItemDO
     * @param id
     * @return logicProGetItemDO
     */
    public LogicProGetItemDO findLogicProGetItemDOByPrimaryKey(String id) throws DataAccessException;

    /**
     * 删除记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteLogicProGetItemDOByPrimaryKey(String id) throws DataAccessException;

    /**
     * 查询
     * @param 
     * @return LogicProGetItemDO
     */
    public List<LogicProGetItemDO> find(SearchConditions scs) throws DataAccessException;
    
    /**
     * 
     * @param LogicProGetItemDO
     * @return 
     */
    public Integer count(SearchConditions scs) throws DataAccessException;
    
    public Integer deleteLogicProGetItemPrimaryKey(String id) throws DataAccessException;
    
    public Double sumQuantity(SearchConditions scs)throws DataAccessException;
}